//
//  UIColor+ZLCategory.h
//  ZLCategory
//
//  Created by zhaozl on 2022/4/26.
//

#import <UIKit/UIKit.h>

#define ZLRGB(rgbValue) [UIColor zl_colorWithHex:rgbValue]
#define ZLRGBA(rgbValue,a) [UIColor zl_colorWithHex:rgbValue alpha:a]

NS_ASSUME_NONNULL_BEGIN

@interface UIColor (ZLCategory)

/// 十六进制
+ (UIColor *)zl_colorWithHex:(int)hex;

/// 十六进
+ (UIColor *)zl_colorWithHex:(int)hex alpha:(CGFloat)alpha;

/// 获取随机颜色，alpha默认1
+ (UIColor *)zl_randomColor;

/// 获取随机颜色
+ (UIColor *)zl_randomColorWithAlpha:(CGFloat)alpha;

@end

NS_ASSUME_NONNULL_END
